package kr.hkit.powerjava.chapter06.work2;

public class CopyOfMainTest {

	public static void main(String[] args) {
		
		// 디버깅시 일일이 경우의 수 넣어보기 힘들때
		
		CopyOfWork01 w = new CopyOfWork01 (5);
		System.out.println(w);
		w.setData(10);
		System.out.println(w);
		w.setData(20);
		System.out.println(w);
		w.setData(100);
		System.out.println(w);
		
	
		/*CopyOfWork01 w = new CopyOfWork01 (5);
		CopyOfWork01 w1 = new CopyOfWork01 (10);
		CopyOfWork01 w2 = new CopyOfWork01 (20);
		CopyOfWork01 w3 = new CopyOfWork01 (100);
		
		System.out.println(w);
		System.out.println(w1);
		System.out.println(w2);
		System.out.println(w3);*/
		
	}
}
